dxp-ux

(0 reviews)

customerBillById(TMF678 GET) retriveCustomerBill By ID - V1

CASE 1 Unitary Test

This usecase is to retrieve bill history from evertec

URL
https://nonprod.esb.cloud.lla.com/dev/dxp-ux/dxp-ux/v1/PR/customerBill/1223334444
URI Param
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, PR etc.) identifying the business unit.
Expected one is "PR"-Puerto Rico
Y
idstringbill document unique identifierY
Query Param
nametypedescriptionrequired
billingAccount.idstringcustomer account id, without any "-"Y
billDatestringbill date of the account
example "2024-01-10"
Y
pdfstringpdf content flag
allowed values are "true"
Y
namevaluedescriptionrequired
client_idstringThe client_id identifying the channel.Y
client_secretstringPassword associated with the client_id.Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server.
Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.
Note - Mule default behavior creates a sample x-correlation-id field if value is not passed from client, API will use this value in case value is not passed in API request
Y
targetSystemstringTarget system identifier
Allowed values are "EVERTEC"
Y
lobstringDefines the line of business
Allowed values are "POSTPAID"
Y
channelIdstringSource system identifier
Allowed values are "APP"
Y
Request
curl --location 'https://nonprod.esb.cloud.lla.com/dev/dxp-ux/dxp-ux/v1/PR/customerBill/252929057?billingAccount.id=821470133&billDate=2024-01-10&pdf=true' \
--header 'client_id: 7afe7ffbe27147bcb5308c92fd3d9488' \
--header 'client_secret: 875c5df1fC294C6Db584a670d0408019' \
--header 'X-Correlation-ID: 25-8412-9621-85415' \
--header 'targetSystem: EVERTEC' \
--header 'lob: POSTPAID' \
--header 'channelId: APP'
Response
200 OK
{
    "billDocument": [
        {
            "content": "lODE4Yjc3NDM4MjhiZTc1MTdjYmNjOTU0Pl0KPj4Kc3RhcnR4cmVmCjUzNjkzNwolJUVPRgo=",
            "@type": "pdfBinaryRepresentation"
        }
    ]
}
namevaluedescriptionrequired
billDocumentarrayarray object of bill documentN
billDocument.contentstringbinary pdf content of the bill documentN
billDocument.@typestringtype of the content.
Expected value is "pdfBinaryRepresentation"
N

Reviews